package com.zz.yt.lib.bluetooth.base;

import com.inuker.bluetooth.library.BluetoothClient;
import com.whf.android.jar.app.Latte;

import java.util.UUID;

/**
 * @author qf
 * @version 1.0
 **/
public class Bluetooth {

    /**
     * 连接过得数据*名称
     */
    public static final String BLUETOOTH = "Bluetooth";
    /**
     * 连接过得数据-地址
     */
    public static final String BLUETOOTH_ADDRESS = "BluetoothAddress";

    /**
     * SPP服务UUID号
     */
    public static final UUID UUID_SERVICE_CHANNEL
            = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");

    /**
     * 构建全局BluetoothClient
     */
    private static final class BluetoothHolder {
        private static final BluetoothClient CLIENT = new BluetoothClient(Latte.getActivity());
    }

    /**
     * Service接口
     */
    private static final class BluetoothServiceHolder {
        private static final BluetoothClient REST_SERVICE = BluetoothHolder.CLIENT;
    }

    public static BluetoothClient getRestService() {
        return BluetoothServiceHolder.REST_SERVICE;
    }


}
